﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Leap;
using System.Diagnostics;


namespace LeapInterface
{
    class MyGlobals
    {
        public static int countFrame = 0; // can change because not const
        public static int gestureIdNumber = 0;
        public static Boolean gatherData = false;
        public static int lineSize = 180;
        public static int fileLength = 0;
        public static int numberResult = 1;
        public static ArrayList Linelist = new ArrayList();
        public static ArrayList infoList = new ArrayList();
        public static int currentGestureId = -1;
        public static int numberFrameGesture = 5;
		public static bool staticFrame = false;
		public static Frame initFrame = null;
		public static List<Vector> fingersInit = null;
        public static bool refreshStatusFingers = false;
        public static float disDiff = 0;
        public static float SqzDiff = 0;
        public static float rotDiff = 0;
        public static int countGestureFound = 0;
        public static int mouseX = 0;
        public static int mouseY = 0;
        public static bool oneFingerDetected = false;
        public static bool clicked = false;
        public static int SinceCliked = 0;
        public static int mouseClicked = 0;
        public static bool startThread = false;
        public static float touchZoneValue = 0;
        public static int ScrollPosition = 0;
        public static int wheelPos = -1;
        public static bool processOn = false;
        public static bool gui = true;
        public static Stopwatch stopwatch = new Stopwatch();
        public static Stopwatch[] fingerChrono = new Stopwatch[5];
        public static int fps = -1;
        public static bool showFps = true;
        public static int fRate = 0;
        public static SByte[] tabKey = {90, 88, 67, 86, 66, 38 ,40, 37, 39};
        public static bool[] ctrl = new bool[9];
        public static bool[] alt = new bool[9];
        public static bool[] shift = new bool[9];
        public static bool allowKeyboard = true;
        public static bool debug = false;
        public static bool MouseMode = false;
        public static bool DirectionnalArrowMode = false;
        public static bool PadMode = true;
        public static bool[] gestureSet = new bool[9];
    }
}
